﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BaseInfoMaster.master" AutoEventWireup="true"
    CodeFile="EditSMSParameter.aspx.cs" Inherits="SMSManage_EditSMSParameter" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="stylesheet" href="../Content/Site.css" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1 class="DemoTitle">
        短信平台参数设置
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <div style="padding-left: 10px">
            <dx:ASPxRoundPanel ID="Detailpanel" Font-Size="Small" runat="server" Width="600px"
                HeaderText="基础参数列表" CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx"
                EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
                SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                <ContentPaddings PaddingBottom="10px" PaddingLeft="7px" PaddingRight="11px" PaddingTop="10px" />
                <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="7px" PaddingRight="11px" PaddingTop="1px" />
                </HeaderStyle>
                <PanelCollection>
                    <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                        <table width="100%">
                            <tr>
                                <td align="right" style="width: 170px">
                                    <dx:ASPxLabel ID="lab_Com" runat="server" Text="串口号：">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="2">
                                    <dx:ASPxTextBox ID="txt_Com" runat="server" Width="170px">
                                        <MaskSettings Mask="&lt;0..999&gt;" />
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxLabel ID="lab_BaudRate" runat="server" Text="波特率：">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="2">
                                    <dx:ASPxTextBox ID="txt_BaudRate" runat="server" Width="170px">
                                        <MaskSettings Mask="&lt;0..99999&gt;" />
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxLabel ID="lab_Rate" runat="server" Text="检索频率：">
                                    </dx:ASPxLabel>
                                </td>
                                <td style="width: 170px">
                                    <dx:ASPxTextBox ID="txt_Rate" runat="server" Width="170px">
                                        <MaskSettings Mask="&lt;0..99999g&gt;.&lt;00..99&gt;" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td align="left">
                                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="分钟">
                                    </dx:ASPxLabel>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxLabel ID="lab_Mday" runat="server" Text="纪念日短信发送时间点：">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="2">
                                    <dx:ASPxTimeEdit ID="te_Mday" runat="server" EditFormat="Custom" 
                                        EditFormatString="HH:mm:ss">
                                    </dx:ASPxTimeEdit>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxLabel ID="lab_Book" runat="server" Text="预定短信模版：">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="2">
                                    <dx:ASPxComboBox ID="cbo_Book" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                        CssPostfix="DevEx" Font-Size="10pt" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                        Width="170px" DropDownWidth="300" DataSourceID="SqlDataSourceMain" DropDownStyle="DropDownList"
                                        ValueField="SMSLibraryID" ValueType="System.Int32" TextFormatString="{0}">
                                        <Columns>
                                            <dx:ListBoxColumn FieldName="SMSLibraryID" Caption="编码" />
                                            <dx:ListBoxColumn FieldName="SMSContent" Caption="内容" Width="400px" />
                                            <dx:ListBoxColumn FieldName="SMSClass" Caption="类型" />
                                        </Columns>
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxLabel ID="lab_Cancel" runat="server" Text="取消预定短信模版：">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="2">
                                    <dx:ASPxComboBox ID="cbo_Cancel" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                        CssPostfix="DevEx" Font-Size="10pt" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                        Width="170px" DropDownWidth="300" DataSourceID="SqlDataSourceMain" DropDownStyle="DropDownList"
                                        ValueField="SMSLibraryID" ValueType="System.Int32" TextFormatString="{0}">
                                        <Columns>
                                            <dx:ListBoxColumn FieldName="SMSLibraryID" Caption="编码" />
                                            <dx:ListBoxColumn FieldName="SMSContent" Caption="内容" Width="400px" />
                                            <dx:ListBoxColumn FieldName="SMSClass" Caption="类型" />
                                        </Columns>
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxLabel ID="lab_Balance" runat="server" Text="余额提示短信模版：">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="2">
                                    <dx:ASPxComboBox ID="cbo_Balance" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                        CssPostfix="DevEx" Font-Size="10pt" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                        Width="170px" DropDownWidth="300" DataSourceID="SqlDataSourceMain" DropDownStyle="DropDownList"
                                        ValueField="SMSLibraryID" ValueType="System.Int32" TextFormatString="{0}">
                                        <Columns>
                                            <dx:ListBoxColumn FieldName="SMSLibraryID" Caption="编码" />
                                            <dx:ListBoxColumn FieldName="SMSContent" Caption="内容" Width="400px" />
                                            <dx:ListBoxColumn FieldName="SMSClass" Caption="类型" />
                                        </Columns>
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <dx:ASPxLabel ID="lab_Order" runat="server" Text="订餐询问短信模版：">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="2">
                                    <dx:ASPxComboBox ID="cbo_Order" runat="server" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                        CssPostfix="DevEx" Font-Size="10pt" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css"
                                        Width="170px" DropDownWidth="300" DataSourceID="SqlDataSourceMain" DropDownStyle="DropDownList"
                                        ValueField="SMSLibraryID" ValueType="System.Int32" TextFormatString="{0}">
                                        <Columns>
                                            <dx:ListBoxColumn FieldName="SMSLibraryID" Caption="编码" />
                                            <dx:ListBoxColumn FieldName="SMSContent" Caption="内容" Width="400px" />
                                            <dx:ListBoxColumn FieldName="SMSClass" Caption="类型" />
                                        </Columns>
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td>
                                    <dx:ASPxButton ID="SubmitBtn" Font-Size="Small" runat="server" Text="保存" CssFilePath="~/App_Themes/DevEx/{0}/styles.css"
                                        CssPostfix="DevEx" SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" OnClick="SubmitBtn_Click">
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
        </div>
        <asp:SqlDataSource ID="SqlDataSourceMain" ConnectionString="<%$ ConnectionStrings:CMSConnectionString %>"
            SelectCommand="Select      SMSLibraryID,
                                       SMSContent,
		                               SMSClass = b.ClassName
                              from   BI_SMSLibrary a,
                                     BI_SMSClass b 
                              where  a.SMSClass_ID = b.ClassID " runat="server" ProviderName="<%$ ConnectionStrings:CMSConnectionString.ProviderName %>">
        </asp:SqlDataSource>
    </div>
</asp:Content>
